import createPersistedState from 'vuex-persistedstate'
import { setItem } from '@/utils/auth'
export default {
    namespaced: true,
    state:() => {
        return {
            count: 0
        }
    },
    mutations: {
        updateCount(state,payload){
            state.count = payload
            setItem('payCount',state.count)
        }
    },
    actions: {
        
    },
    getters: {
        
    },
    Plugins:[
        createPersistedState({
            key:'payCount',
            paths:['car']
        })
    ]
}